<include file="./Application/Home/View/default/public/header.html" title="我的订单"/>
<div id="teacher-form" class="teacher-form body-margin">
    <link rel="stylesheet" href="/Public/teacher/teacherorder/teacherorder.css">
    <div class="container">
        <div class="row">
            <div class="col-md-12 form-body">
                <div class="panel panel-default order tab-course">
                    <div class="panel-heading text-center">
                        <h3 class="panel-title">我的订单</h3>
                    </div>
                    <nav>
                        <a href="" class="btn active">全部课程</a>
                        <a href="" class="btn">进行中的课程</a>
                        <a href="" class="btn">已结束课程</a>
                    </nav>
                    <div class="table-responsive course-list">
                        <table class="table panel-light">
                            <tr>
                                <th>订单号</th>
                                <th>状态</th>
                                <th>学生姓名</th>
                                <th>地址</th>
                                <th>剩余时长</th>
                                <th>上课登记</th>
                                <th>上课记录</th>
                                <th>详情</th>
                            </tr>
                            <foreach name="lists" item="list">
                                <tr>
                                    <td class="order_sn">{$list.order_sn}</td>
                                    <td>
                                        <if condition="($list['order_status'] eq 3) ">进行中</if>
                                        <if condition="($list['order_status'] eq 4) ">学生申请结束课程</if>
                                        <if condition="($list['order_status'] eq 5) ">
                                        课程结束
                                        </if>
                                    </td>
                                    <td>{$list.name}</td>
                                    <td>{$list.address}</td>
                                    <td class="coursenum">{$list.coursenum}</td>
                                    <td>
                                        <if condition="($list['order_status'] eq 3) AND ($list.coursenum neq 0) ">
                                            <a href="javascript:;" class="add-recorder-btn">登记</a>
                                        <else/>
                                            <span>-</span>
                                        </if>
                                    </td>
                                    <td>
                                        <a href="">查看</a>
                                    </td>
                                    <td>
                                        <a href="">查看</a>
                                    </td>
                                </tr>
                            </foreach>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade" id="addRecorder" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog text-center">
        <div class="modal-content">
             <div class="modal-header">
                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                     <span aria-hidden="true">×</span>
                 </button>
                 <h4 class="modal-title" id="FastFindModalLabel">请登记本次上课信息</h4>
             </div>
             <div class="modal-body">
                 <div class="login-form" ng-controller="FastOrderCtrl">
                     <div class="form-group clearfix">
                        <label class="control-label left" for="coursenum">消耗课时数</label>
                        <select name="reducenum" id="reduceNum">

                        </select>
                     </div>

                     <div class="form-group clearfix">
                        <label class="control-label left" for="desc">上课时间</label>
                        <select name="eventtime" id="eventTime">

                        </select>
                     </div>

                    <div class="form-group clearfix">
                       <label class="control-label left" for="desc">备注信息</label>
                       <textarea class="form-control login-field  long_remarks" type="text" placeholder="" id="desc" name="remark" rows="3"></textarea>
                    </div>


                     <a href="javascript:;" class="btn bg-green white btn-lg btn-block" id="okAddRecorder">确定登记</a>
                 </div>
             </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/Public/teacher/teacherorder/teacherorder.js"></script>
<include file="./Application/Home/View/default/public/footer.html"/>
</body>
</html>
